<!DOCTYPE html>  
<html>  
  <head>  
    <title>Constructors</title>  
  </head>
  <body>  
    <script type="text/javascript">
      class Car  
      {  
        constructor(year, name) {
          this.modelYear = year;
          this.modelName = name;
        }
      };
      
      var myCar = new Car(1969, "Mustang");
      document.write(myCar.modelYear + " " + myCar.modelName);
    </script> 
  </body>  
</html>